
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include <csvlog.h>

int main()
{
	csvlog_t *cl=NULL;
	cl = csvlog_create( "./log.csv", "id,name,surname" );
	csvlog_set( cl, "id", "1" );
	csvlog_set( cl, "name", "artur" );
	csvlog_nl( cl );
	csvlog_set( cl, "surname", "artamonov" );
	csvlog_nl( cl );
	csvlog_sets( cl, "id", "");
	csvlog_sets( cl, "name", "a");
	csvlog_sets( cl, "surname", "a\"\"d");
	csvlog_nl( cl );
	csvlog_nl( cl );
	csvlog_close( cl );
	
	
	return 0;
}
